solve exponential